package com.jie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jie.entity.ArticleTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 论坛文章表和标签表的中间表 Mapper 接口
 * </p>
 *
 * @author jie
 * @since 2024-05-29
 */
@Mapper
public interface ArticleTagMapper extends BaseMapper<ArticleTag> {


    /**
     * 批量保存文章标签
     *
     * @param articleId 文章id
     * @param tagIdList 标签id列表
     */
    void saveBatchArticleTag(@Param("articleId") Integer articleId, @Param("tagIdList") List<Integer> tagIdList);

}
